package com.acerola.mrpc.constant;

import lombok.Data;

/**
 * @program: mrpc
 * @description:
 * @author: Acerola
 * @create: 2022-12-10 19:39
 **/
public enum SerialType {
    /**
     * fastjson2序列化
     */
    FASTJSON2_SERI((byte) 1),
    /**
     * jdk序列化
     */
    JDK_SERI((byte) 2);

    private byte code;

    SerialType(byte code) {
        this.code = code;
    }

    public byte getCode(){
        return this.code;
    }
}
